<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!-- Required meta tags -->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

    <!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">

<title>addProcurement</title>
<script type="text/javascript">     
function show(){  
     var y = document.getElementById("years");  
     var m = document.getElementById("months");  
     var d = new Date();  
    // alert(d.getFullYear());  
    // alert(d.getMonth());  
    $("#years").attr("value", d.getFullYear());  
    $("#months").attr("value", d.getMonth() + 1);  
}  
</script>   

</head>
<body onload="show()">

<%	Object msg=request.getAttribute("message");

	if(msg!=null){	
%>
<font color="red"><%=msg %></font>
<%	} %>
 <form action="addProcurement.Do" method="post">

			
			 <div class="form-group">
				 <label  class="col-sm-2 col-form-label">采购人:</label>
				<input type="text" name="proMan">
				</div>
			 <div class="form-group">
				<label  class="col-sm-2 col-form-label">采购材料:</label>
				<input type="text" name="proMaterial">
				</div>
			<div class="form-group">	 	
				<label  class="col-sm-2 col-form-label">采购时间:</label>
				 <select id="years">  
       <c:forEach var="year" begin="2016" end="2022" step="1" >  
        <option value="${year}"  >${year}</option>  
       </c:forEach>  
      	 </select>  
    	 <select id="months">  
       <c:forEach var="month" begin="1" end="12" step="1" >  
        <option value="${month}">${month}</option>  
       </c:forEach>  
     	 </select>
     	<select id="days">  
       <c:forEach var="day" begin="1" end="31" step="1" >  
        <option value="${day}">${day}</option>  
       </c:forEach>  
     	 </select>
			</div>
			 <div class="form-group">	 	
				<label  class="col-sm-2 col-form-label">费用:</label>
				<input type="text" name="proPay">
			</div>
			<input type="submit" class="btn btn-primary" value="提交">
			
		
  </form>
</body>
</html>